package com.kakarote.core.feign.hrm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author qun.xu
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_examine")
@ApiModel("HRM流程对象")
public class HrmExamine implements Serializable {

    @TableId(value="examine_id", type = IdType.ASSIGN_ID)
    private Long examineId;
    /**
     * 审批类型
     */
    private Long categoryId;
    /**
     * 审批记录id
     */
    private Long examineRecordId;
    /**
     * 审批状态
     */
    private Integer examineStatus;

    /**
     * 审批内容
     */
    private String content;

    /**
     * 审批状态
     */
    private String remark;
    /**
     * 业务对象
     */
    private String formJson;
    /**
     * 创建人id
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUserId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.UPDATE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUserId;

}
